import request from '@/request/request'
//运输订单列表
export function getTransportationRecordsList(data) {
	return request({
		url: '/business/site/transportationRecords',
		method: 'get',
		data: data
	})
}

// 详情
export function transportationRecordsDetails(id) {
	return request({
		loading: true,
		url: `/business/site/transportationRecords/${id}`,
		method: 'get',
	})
}
// 取消
export function cancelApplication(id) {
    return request({
      url: '/business/transportation_order/cancelApplication/' + id,
        method: 'post'
    })
}


// 所有排放单位列表
export function user_sign_allList() {
    return request({
        url: '/business/user_sign/allList',
        method: 'get'
    })
}
//查询所有油品列表 
export function oil_allList(query) {
  return request({
    url: '/business/oil_management/allList',
    method: 'get',
    data: query
  })
}
// 处理厂列表
export function listAllTreatmentplant(id) {
  return request({
    url: '/business/treatmentplant/listAll',
    method: 'get'
  })
}
// 预处理厂列表
export function listAllSorting_center(id) {
  return request({
    url: '/business/sorting_center/listAll',
    method: 'get'
  })
}
// 所有中转站列表
export function listAllTransfer_station(id) {
  return request({
    url: '/business/transfer_station/listAll',
    method: 'get'
  })
}
//查询所有种类列表 
export function category_allList(query) {
  return request({
    url: '/business/category_management/allList',
    method: 'get',
    data: query
  })
}

// 新增 serviceType 1罐油2挂
export function addLn_receipt_shipment_order(data) {
  return request({
    url: '/business/transportation_order',
    method: 'post',
    data: data
  })
}

